import request from "@/utils/request"
export interface findFeedback {
    pageNo?: number; // 页码
    pageSize?: number; // 页面大小
    contactInformation: string; // 联系信息
}
export interface addFeedback {
    serviceQuality: string; // 服务质量
    staffServiceAttitude: string; // 员工服务态度
    facilitiesAndEquipment: string; // 设施和设备
    overallRating: string; // 总体评价
    commentsAndSuggestions: string; // 评论和建议
    contactInformation: string; // 联系信息
}
export interface modifyFeedback extends addFeedback {
    id: string
}
// 查询服务反馈信息
export function reqfindFeedback(params: Partial<findFeedback>) {
    return request({
        url: '/findFeedback',
        method: 'post',
        data: params,
    })
}
// id查询航班信息
export function reqfindFeedbackById(params: { id: string }) {
    return request({
        url: '/findFeedbackById',
        method: 'post',
        data: params,
    })
}

// 添加航班信息
export function reqaddFeedback(params: Partial<addFeedback>) {
    return request({
        url: '/addFeedback',
        method: 'post',
        data: params,
    })
}
// 修改航班信息
export function reqmodifyFeedback(params: Partial<modifyFeedback>) {
    return request({
        url: '/modifyFeedback',
        method: 'post',
        data: params,
    })
}
// 删除航班信息
export function reqremoveFeedback(params: { id: string }) {
    return request({
        url: '/removeFeedback',
        method: 'post',
        data: params,
    })
}